/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package book;

/**
 *
 * @author x3m
 */
public class PhoneBookItem {
    private String surname = "";
    private String first_name = "";
    private String second_name = "";
    private String phone1 = "";
    private String phone2 = "";
    private String phone3 = "";
    private String addr = "";
    private String privateID = "";
    
    public PhoneBookItem() {
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getFirst_name() {
        return first_name;
    }

    public void setFirst_name(String first_name) {
        this.first_name = first_name;
    }

    public String getPhone1() {
        return phone1;
    }

    public void setPhone1(String phone1) {
        this.phone1 = phone1;
    }

    public String getPhone2() {
        return phone2;
    }

    public void setPhone2(String phone2) {
        this.phone2 = phone2;
    }

    public String getPhone3() {
        return phone3;
    }

    public void setPhone3(String phone3) {
        this.phone3 = phone3;
    }

    public String getPrivateID() {
        return privateID;
    }

    public void setPrivateID(String privateID) {
        this.privateID = privateID;
    }

    public String getSecond_name() {
        return second_name;
    }

    public void setSecond_name(String second_name) {
        this.second_name = second_name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }    
    
    public String getFullName(){
        return this.surname + " " + this.first_name + " " + this.second_name;
    }
    
    public String getAllPhones(){
        return this.phone1 + " " + this.phone2 + " " + this.phone3;
    }

    @Override
    public String toString() {
        StringBuilder str = new StringBuilder();
        str.append(this.surname).append(" ").append(this.first_name).append(" ").append(this.second_name);
        str.append("<br />");
        str.append(this.phone1);
        str.append("<br />");
        str.append(this.phone2);
        str.append("<br />");
        str.append(this.phone3);
        str.append("<br />");
        str.append(this.privateID);
        return str.toString();
    }    
}
